package zjitc.interfa2.usb;

import java.util.Scanner;

/**
 * @author:胡新雨
 * @date：2019/3/26 9:33
 */
public class Test {
    public static void main(String[] args) {
       Computer computer=new Computer();
        Usb usb1=new Mouse();
        Usb usb2=new KeyBoard();
        Usb usb3=new Mic();
        computer.add(usb1);
        computer.add(usb2);
        computer.add(usb3);

        computer.powerOn();
        System.out.println("---------------------");
         computer.powerOff();

    /**    Computer computer=new Computer();
        computer.mouse=new Mouse();
        computer.keyBoard=new KeyBoard();
        computer.mic=new Mic();



          computer.trunOn();



            computer.trunoff();*/

    }
}
